//
//  Person.m
//  OC03_属性_点语法
//
//  Created by 侯平章 on 16/2/21.
//  Copyright © 2016年 侯平章. All rights reserved.
//

#import "Person.h"

@implementation Person
#pragma mark - init.
- (instancetype)initWithName:(NSString*)name sex:(NSString*)sex age:(NSInteger)age{
    self = [super init];
    if (self) {
        _name = name;
        _sex = sex;
        _age = age;
    }
//    Person *per1 = [[Person alloc] initWithName:name sex:sex age:age];
    return self;
}
#pragma mark - 构造器.
+ (instancetype)Person{
    return [[Person alloc] init];
}
+(instancetype)PersonWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age{
    return [[Person alloc] initWithName:name sex:sex age:age];
}

#pragma mark -other.

@end
